package com.googlecode.stil.playground;

import org.andengine.entity.scene.Scene;
import org.andengine.ui.activity.BaseGameActivity;

public abstract class StilBaseGameActivity extends BaseGameActivity {

	public abstract void onCreateResources();

	public abstract Scene onCreateScene();

	@Override
	public void onCreateResources(OnCreateResourcesCallback pOnCreateResourcesCallback) {
		this.onCreateResources();
		pOnCreateResourcesCallback.onCreateResourcesFinished();
	}

	@Override
	public void onCreateScene(OnCreateSceneCallback pOnCreateSceneCallback) {
		pOnCreateSceneCallback.onCreateSceneFinished(this.onCreateScene());
	}

	@Override
	public void onPopulateScene(Scene pScene, OnPopulateSceneCallback pOnPopulateSceneCallback) {
		pOnPopulateSceneCallback.onPopulateSceneFinished();
	}

}
